﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DocumentList.aspx.cs" Inherits="WebUI.Document.DocumentList" %>

<%@ Register Assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
	Namespace="System.Web.UI.WebControls" TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>

    	<asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=DMSEntities" 
			DefaultContainerName="DMSEntities" EntitySetName="Document" 
			EntityTypeFilter="Document" 
			Select="it.[Name], it.[OriginalFileName], it.[CreationDate], it.[NumberOfDownloads], it.[ID], it.[NumberOfRatings], it.[TotalRating]" 
			Where="">
		</asp:EntityDataSource>
		<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
			DataSourceID="EntityDataSource1">
			<Columns>
				<asp:BoundField DataField="Name" HeaderText="Name" ReadOnly="True" 
					SortExpression="Name" />
				<asp:BoundField DataField="OriginalFileName" HeaderText="OriginalFileName" 
					ReadOnly="True" SortExpression="OriginalFileName" />
				<asp:BoundField DataField="CreationDate" HeaderText="CreationDate" 
					ReadOnly="True" SortExpression="CreationDate" />
				<asp:HyperLinkField DataNavigateUrlFields="ID" 
					DataNavigateUrlFormatString="Download.ashx?docid={0}" DataTextField="ID" 
					DataTextFormatString="Download" />
			</Columns>
		</asp:GridView>

    </div>
    </form>
</body>
</html>
